package com.logou.service.impl;

import com.logou.domain.Article;
import com.logou.repository.ArticleRepository;
import com.logou.service.ArticleService;
import com.logou.utils.PageableUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceIpml implements ArticleService {
    @Autowired
    private ArticleRepository articleRepository;
    @Override
    public Page<Article> findAll() {
        return articleRepository.findAll(PageableUtil.getPageable());
    }
}
